using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(menuName = "Custom/InformationObjects")]
public class InformationObject:ScriptableObject {

	public static Dictionary<string,InformationObject> instances = new Dictionary<string,InformationObject>();
	private void OnEnable() {
		instances.Add(name,this);
	}

	[field: SerializeField] public string nameCN { get; private set; }
	[field: SerializeField] public string nameEN { get; private set; }
	public string nameLang { get { return ConfigManager.language=="CN" ? nameCN : nameEN; } }

	[field: SerializeField] public string descrCN { get; private set; }
	[field: SerializeField] public string descrEN { get; private set; }
	public string descrLang { get { return ConfigManager.language=="CN" ? descrCN : descrEN; } }

	[field: SerializeField] public Sprite sprite { get; private set; }

}
